//
//  CoreUserViewController.m
//  CoreUser
//
//  Created by Demi on 14/04/2017.
//  Copyright © 2017 Azazie. All rights reserved.
//

#import "CoreUserViewController.h"

#import "TXFire.h"
#import <ReactiveObjC/ReactiveObjC.h>

@interface CoreUserViewController ()

@end

@implementation CoreUserViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    @weakify(self);
    [self.view.tx_tapGestureRecognizer.rac_gestureSignal subscribeNext:^(__kindof UIGestureRecognizer * _Nullable x) {
        @strongify(self);
        [self.view endEditing:YES];
    }];
}

- (void)viewWillDisappear:(BOOL)animated
{
    [self.view endEditing:YES];
    [super viewWillDisappear:animated];
}

@end
